<?php

class Fw_Controller_Validate_Session extends Zend_Controller_Action
{
	public function isClient()
    {
		$storage = new Zend_Auth_Storage_Session();
		$data = $storage->read();
		if(!$data) {
			return $this->_redirect('index/index/login');
		} else {
			$this->view->user_id     = $data->id;
			$this->view->user_name   = $data->name;
			$this->view->user_type   = $data->user_type;
			$this->view->user_status = $data->user_status;
			
			return true;
		}
    }
}